{% extends "adibilisadminBundle::layout.html.twig" %}
 
{% block title %}
  Ajout critère - {{ parent() }}
{% endblock %}

{% block adibilisadmin_body %}

{% if app.session.hasFlash('info') %}
        <div class="alert alert-success">
            {{ app.session.flash('info') }}
        </div>
{% endif %}

<h1>Critère</h1>

<table class="table table-bordered">
    <tbody>
        <tr>
            <th>Id</th>
            <td>{{ entity.id }}</td>
        </tr>

        <tr>
            <th>Image</th>
            <td><img src="/adibilis/web/uploads/img/criterias/{{ entity.image.id }}.{{ entity.image.url }}" /></td>
        </tr>
        <tr>
            <th>name</th>
            <td>{{ entity.name }}</td>
        </tr>
        
        <tr>
            <th>nameen</th>
            <td>{{ entity.nameen }}</td>
        </tr>
        <tr>
            <th>namede</th>
            <td>{{ entity.namede }}</td>
        </tr>
    </tbody>
</table>


        <a href="{{ path('criteria') }}" class="btn">
      <i class="icon-chevron-left"></i>
      Retour à la liste
    </a>

        <a href="{{ path('criteria_edit', {'id': entity.id}) }}" class="btn">
      <i class="icon-edit"></i>
      Modifier le critère
    </a>
    </br></br>

        <form action="{{ path('criteria_delete', { 'id': entity.id }) }}" method="post">
            {{ form_widget(delete_form) }}
            <button type="submit" class="btn btn-danger">Supprimer</button>
        </form>


{% endblock %}